package model.dto;

import db.DAOFactory;
import model.Role;

/**
 * 
 * Description: 用于输出权限级别Role的资源操作权限的列表的DTO类。
 *  
 * @since  2009/3/4
 * @author ashen
 * 
 */
public class Privileges {
	private Role role;

	public Privileges(Integer id) {
		role=DAOFactory.getRoleDAO().findById(id);
	}

	public Privileges(Role role) {
		this.role = role;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}
	
}
